package com.samphanie.auiu.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.samphanie.auiu.admin.service.ISysResourceCategoryService;
import com.samphanie.auiu.mbg.mapper.SysResourceCategoryMapper;
import com.samphanie.auiu.mbg.model.SysResourceCategory;
import com.samphanie.auiu.mbg.utils.PageUtils;
import lombok.val;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 资源分类Service业务层处理
 *
 * @author zsy
 * @date 2021-05-18
 */
@Service
public class SysResourceCategoryServiceImpl extends ServiceImpl<SysResourceCategoryMapper, SysResourceCategory> implements ISysResourceCategoryService {

    /**
     * 查询资源分类列表
     *
     * @param query
     * @return 资源分类
     */
    @Override
    public List<SysResourceCategory> selectSysResourceCategoryList(Map<String, String> query) {
        return baseMapper.selectSysResourceCategoryList(query);
    }

    @Override
    public PageUtils listPage(Map<String, Object> query) {
        PageUtils.startPage(query);
        val list = list();
        return new PageUtils(list);
    }
}
